package model;

import java.awt.image.BufferedImage;
import java.util.Date;

/**
 * A template used to create the guests of the hotel.   
 * 
 * @author Kenny Chong, Dan End, James Ju
 * CSE 333 : User Interface
 * Project HMSystem
 */
public class Guests {

	private String name;
	private int ID;
	private String phoneNumber;
	
	// Stay time of guest.
	private Date admitDate;
	private Date leaveDate;
	
	// Current room guest is in.
	private Room residingRoom;
	
	// Guest's ID photo image.
	private BufferedImage profileImg;
	
	/**
	 * Construct the guest.
	 * @param name
	 * @param ID
	 * @param admitDate
	 * @param leaveDate
	 * @param img
	 */
	public Guests(String name, int ID, Date admitDate, Date leaveDate,
			BufferedImage img, Room residingRoom, String phoneNum)
	{
		this.name = name;
		this.ID = ID;
		this.admitDate = admitDate;
		this.leaveDate = leaveDate;
		this.profileImg = img;
		this.phoneNumber = phoneNum;
		this.residingRoom = residingRoom;
	}
	
	// Setters and getters.
	public String getPhoneNum()
	{
		return phoneNumber;
	}
	
	public void setPhoneNum(String number)
	{
		this.phoneNumber = number;
	}
	
	public String getName()
	{
		return name;
	}
	
	public int getID()
	{
		return ID;
	}
	
	public Date getAdmitDate()
	{
		return admitDate;
	}
	
	public Date getLeaveDate()
	{
		return leaveDate;
	}
	
	public BufferedImage getProfileImg()
	{
		return profileImg;
	}
	
	public Room getCurrentRoom()
	{
		return residingRoom;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public void setID(int id)
	{
		this.ID = id;
	}
	
	public void setAdmitDate(Date date)
	{
		this.admitDate = date;
	}
	
	public void setLeaveDate(Date date)
	{
		this.leaveDate = date;
	}
	
	public void setProfileImg(BufferedImage img)
	{
		this.profileImg = img;
	}
}
